
<body class="m-self-adrs">

<?php if(isset($list)){?>
    <?php foreach($list as $k=>$v){?>
        <dl class="f-cb J_sltAdrs" data-shopid="<?php echo $v['shop_id'];?>">
            <dt>&nbsp;</dt>
            <dd>
                <p><em>自提地址</em><span class="self-addr"><?php echo $v['address'];?></span></p>
                <h6><b class="self-mobile"><?php echo $v['mobile'];?></b></h6>
            </dd>
        </dl>
    <?php } ?>
<?php } ?>

<script>
$(function(){

	var zon = 'z-on';
	$('.J_sltAdrs').on('touchend', 'dt', function(evt){

		var _this = $(this);
		if(_this.hasClass(zon)){
			_this.removeClass(zon);
		}else{
			$('.J_sltAdrs').find('dt').removeClass(zon);
			_this.addClass(zon);
		}

		evt.preventDefault();
		return false;
	});

    $('.m-self-adrs').on('touchend', 'dl', function(evt){
        var addr = $(this).find('.self-addr').text();
        var mobile = $(this).find('.self-mobile').text();
        $(this).tap(function(){
            $(".j-express",window.parent.parent.document).text('自提地址:'+addr+':联系方式:'+mobile);
        })
        parent.document.getElementById('J_addAddressSelf').className = 'm-transX';
        evt.preventDefault();
        return false;
    });




});
</script>
</body>
</html>